.class public Lcom/waiqin365/h5/util/WqObserverHelper;
.super Lorg/apache/cordova/CordovaPlugin;


# instance fields
.field private a:Lorg/apache/cordova/WqCordovaActivity;

.field private b:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lorg/apache/cordova/CordovaPlugin;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/h5/util/WqObserverHelper;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/util/WqObserverHelper;->b:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/h5/util/WqObserverHelper;)Lorg/apache/cordova/WqCordovaActivity;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/util/WqObserverHelper;->a:Lorg/apache/cordova/WqCordovaActivity;

    return-object v0
.end method


# virtual methods
.method public execute(Ljava/lang/String;Lorg/apache/cordova/CordovaArgs;Lorg/apache/cordova/CallbackContext;)Z
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/h5/util/WqObserverHelper;->cordova:Lorg/apache/cordova/CordovaInterface;

    invoke-interface {v0}, Lorg/apache/cordova/CordovaInterface;->getActivity()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lorg/apache/cordova/WqCordovaActivity;

    iput-object v0, p0, Lcom/waiqin365/h5/util/WqObserverHelper;->a:Lorg/apache/cordova/WqCordovaActivity;

    if-eqz p2, :cond_0

    invoke-virtual {p2, v2}, Lorg/apache/cordova/CordovaArgs;->isNull(I)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p2, v2}, Lorg/apache/cordova/CordovaArgs;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/h5/util/WqObserverHelper;->b:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/h5/util/WqObserverHelper;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/h5/util/WqObserverHelper;->a:Lorg/apache/cordova/WqCordovaActivity;

    invoke-virtual {v0}, Lorg/apache/cordova/WqCordovaActivity;->getThreadPool()Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/h5/util/b;

    invoke-direct {v1, p0}, Lcom/waiqin365/h5/util/b;-><init>(Lcom/waiqin365/h5/util/WqObserverHelper;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    :cond_0
    return v2
.end method
